//
//  LoginPresentVC.swift
//  YDOAProduct
//
//  Created by YDWY on 2017/5/26.
//  Copyright © 2017年 Allen. All rights reserved.
//

import UIKit

class LoginPresentVC: UIViewController {

    @IBOutlet weak var msgLab: UILabel!
    var msg : String?
    
    var sureCallBack : (() -> Swift.Void)? = nil
    
    override func viewDidLoad() {
        super.viewDidLoad()
        msgLab.text = msg ?? "密码错误"
        // Do any additional setup after loading the view.
    }

    //确认按钮点击
    @IBAction func sure(_ sender: Any) {
        sureCallBack!()
        self.dismiss(animated: true) { 
            
        }
    }
    //关闭
    @IBAction func close(_ sender: Any) {
        self.dismiss(animated: true) {
            
        }
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
